package com.zc.manager.device.measurements;

import lombok.AllArgsConstructor;
import com.zc.component.dashboard.MeasurementDefinition;
import com.zc.core.metadata.Metadata;

@AllArgsConstructor(staticName = "of")
public class MetadataMeasurementDefinition implements MeasurementDefinition {

    Metadata metadata;

    @Override
    public String getId() {
        return metadata.getId();
    }

    @Override
    public String getName() {
        return metadata.getName();
    }
}
